<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="app">
    <label for="male">
      <!-- 绑定了同一个v-model 可以不用name保持互斥-->
      <input type="radio" id="male" value="男" v-model="sex">男
    </label>
    <label for="female">
      <input type="radio" id="female" value="女" v-model="sex">女
    </label>

    <hr>
    {{sex}}
  </div>

  <script>
    var vm = new Vue({
      el: '#app',
      data: {
        message: 'hello',
        sex: '男'
      },
      methods: {}
    });
  </script>
</body>

</html>